import {createDiscreteApi} from 'naive-ui'

export default defineNuxtPlugin(nuxtApp => {
    const {message, dialog, loadingBar, notification} = createDiscreteApi(['message', 'dialog',
        'loadingBar', 'notification'])
    return {
        provide: { message, dialog, loadingBar, notification}
    }
})

